import request from '@/utils/request'

// 查询培训记录列表
export function listWalkthrough(query) {
  return request({
    url: '/help/walkthrough/list',
    method: 'get',
    params: query
  })
}

// 查询培训记录详细
export function getWalkthrough(uId) {
  return request({
    url: '/help/walkthrough/' + uId,
    method: 'get'
  })
}

// 新增培训记录
export function addWalkthrough(data) {
  return request({
    url: '/help/walkthrough',
    method: 'post',
    data: data
  })
}

// 修改培训记录
export function updateWalkthrough(data) {
  return request({
    url: '/help/walkthrough',
    method: 'put',
    data: data
  })
}

// 删除培训记录
export function delWalkthrough(uId) {
  return request({
    url: '/help/walkthrough/' + uId,
    method: 'delete'
  })
}
